<style>
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
	padding-top:3rem;
    text-align: center;
    color: #fff;
}
.fee-tag {background:linear-gradient(to right,rgba(255,155,48,1),rgba(254,39,37,1));color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tagup {background:linear-gradient(to right,rgba(238,2,253,1),rgba(129,2,138,1));color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fui-goods-group.block .fui-goods-item .detail {height:2.6rem}
.fui-goods-group.block .fui-goods-item .detail.commission_money {height:4rem}
</style>
<div ng-if="pagedata.params.pid==0" class="fui-cell-group">
    <div class="fui-cell" ng-click="access_json('jy_weishopke/goods.index//order=ishot')" style="padding:0.65rem 0.3rem">
          <div class="fui-cell-label bold" style="width:auto"><i class="icon icon-cart1" style="color:red;font-size:1rem"></i> 热卖榜单 </div>
		  <div class="fui-cell-info"></div>
		  <div class="fui-cell-remark">今天为用户省钱{{pagedata.delfee||0.00}}元</div>
     </div>
</div>
	<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;background-image: url('{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}')">
						<div ng-show="item.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
						<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'detail':1,'commission_money':item.plugininfo.ke_money}">
					<a>
						<div class="name">
							<i class="icon"><img style="width:0.9rem;height:0.9rem" ng-src="../addons/jy_weishopke/resource/images/icon-{{item.plugininfo.typeke || 'taobao'}}.png"/></i>
							{{item.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.3rem">
						<span class="text">￥{{item.active.price || item.price}}/{{item.unit || '件'}}</span>
						<span class="subtitle" style="font-weight:400">{{item.likes || 0}}人喜欢</span>
					</div>
					<div ng-if="item.plugininfo.ke_money" class="goods-tag">
						<div class="fui-tag fui-tag-danger fee-tag">{{item.plugininfo.ke_title}}￥{{item.plugininfo.ke_money}}</div>
						<div class="fui-tag fui-tag-danger fee-tagup">升级赚￥{{item.plugininfo.keup_money}}</div>
					</div>
				</div>
			</div>
	</div>
<div id="showtaobaoke"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="width:80%;left:10%;">
			<div class="wap-qrcode-container" style="border-radius:0.5rem;height:auto">
				<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
				<p class="example1" style="padding:0.3rem;border-radius:0.5rem;margin:1rem;background:#FFFFCC">{{pagedata.copyinfo}}</p>
				<p ng-click="clip(pagedata.copyinfo)" class="example1 btn btn-sm btn-red-o">复制商品口令</p>
			</div>
		</div>
</div>
<script>
scope.pagedata.gotoitem=function(item){
	scope.access_json(item.active.url || 'jy_weishopke/goods.detail//id='+item.id);
}
var pluginname=scope.pagedata.params.pluginname?scope.pagedata.params.pluginname:'';
scope.tool.get_list('jy_weishop/goods.index/getlist/isweishopke=1&pluginname='+pluginname,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/goods.index/getlist/isweishopke=1&pluginname='+pluginname);
}
</script>
